package org.huzhp.console.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.huzhp.console.entity.SentinelRule;
import org.huzhp.console.entity.vo.SentinelRuleVo;

import java.util.List;

/**
 * @Description: java类作用描述
 * @Author: huzp
 * @CreateDate: 2020/3/12 15:28
 * @Version: 1.0
 */
@Mapper
public interface SentinelRuleMapper extends BaseMapper<SentinelRule> {
    /**
     * 获取规则信息
     *
     * @param ruleResource
     * @return
     */
    SentinelRuleVo findRuleByRuleResource(String ruleResource);

    /**
     * 获取所有规则信息
     *
     * @return
     */
    List<SentinelRuleVo> findAll();
}
